package com.hopedove.tempdemo.common

data class NetConfig(val host: String, val path: String) {
    val url = host + path
}

/***
 * 服务端 URL
 */
val configForLocalTest = NetConfig("http://192.168.1.221:8080", "/szerp/PublicWebServiceInterface")
val configForTest = NetConfig("http://47.105.107.250:8082", "/szerp/PublicWebServiceInterface?wsdl")
val configForProduction =
    NetConfig("http://10.10.151.74:8080", "/szerp/PublicWebServiceInterface?wsdl")


val SERVER_URL_HOST = configForProduction.host
val SERVER_URL = configForProduction.url

/***
 * Soap 的 namespace，同时也是 SoapAction 前缀
 *
 * 完整的 SoapAction 为前缀+方法名, 如 http://service.commons.hoperun.com/zjPDALogin 这是登陆接口的完整的 SoapAction
 */
const val SOAP_NAMESPACE = "http://service.commons.hoperun.com/"

/***
 * 网络连接超时时间
 */
const val SERVER_TIMEOUT = 30000

/***
 *
 */
const val GET_NEW_VERSION_APP_NAME = "坯布检验app"